<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 6/4/21
 * Time: 10:17 PM
 */

namespace app\api\controller\v1;


use app\api\controller\BaseController;
use app\api\model\Team as TeamModel;

class Team extends BaseController
{
    /**
     * 获取团列表
     */
    protected $beforeActionList = [
        'checkPrimaryScope' => ['only' => 'getDataList']
    ];


    /**
     * 获取店面列表
     */
    public function getDataList()
    {
        return TeamModel::order('order_sort desc')->select()->toArray();
    }
}